﻿@model IEnumerable<ITProject.WebUI.Models.Project.ProjectProjectsViewModel>

@{
    ViewBag.Title = "Projekty";
    Layout = "~/Views/Shared/_Layout.cshtml";
}


<p>
    @Html.ActionLink("Dodaj nowy", MVC.Project.ActionNames.Create, MVC.Project.Name, null, new { @class = "button"})
</p>
<table class="inbox">
    <tr>
        <td class="label">
            Logo
        </td>
        <td class="label">
            Nazwa
        </td>
        <td class="label">
            Krótki opis
        </td>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td class="edit">
        @{    
            string av=@Url.Content("~/UserFiles/ProjectLogos/"+item.LogoPath);
            @:<img src=@av alt="avatar" width="120" height="100"/>
        }
        </td>
        <td class="edit">
        <h3>
            @Html.ActionLink(item.Name, MVC.Project.ActionNames.Project, MVC.Project.Name, new { projectName = item.Name },null)
        </h3>
        </td>
        <td class="edit">
            @Html.DisplayFor(modelItem=>item.ShortDescription)
        </td>

    </tr>
}

</table>
